package lliminngneibulei;

import javax.xml.crypto.dsig.CanonicalizationMethod;

public class text01 {
    public static void main(String[] args) {
        E e = new E();
        e.aai();
    }
}
class E{
    private int a=88888;
    public void aai(){
        /*class E$1 implements ia{
        重写cry
        }代码底部情况*/
        ia tiger=new ia(){
            @Override
            public void cry() {                           //接口的调用
                System.out.println("老虎嗷嗷叫");
            };
        };//这里是重点
        tiger.cry();
        father rz=new father("jake"){
            public void iii(){

            }
            public void mii(){                           //类的调用
                text();
                System.out.println(a);
            }
        };
        rz.text();//
        //????
        animal car=new animal(){
            @Override
            void ap() {
                System.out.println("动物小车被调用");
            }
        };
        car.ap();
    }


}
interface ia{
    public void cry();
}
class father{
    public String name;

    public father(String name) {
        this.name = name;
    }
    void text(){
        System.out.println("text被调用");
    }

}
abstract class animal{
    abstract void ap();
}